import urllib.request as request

url = "http://www.baidu.com"

request.urlretrieve(url,"baidu.html")
# read readline readlines getcode geturl getheaders

url_video="https://tongdao1.midiecdn.com/ZB1691NAH/index.m3u8"
request.urlretrieve(url_video,"download.mp4")